if test $cross_compiling = yes; then
AC_PATH_PROG(GDK_PIXBUF_CSOURCE, gdk-pixbuf-csource, no)
- if test x$GDK_PIXBUF_CSOURCE = xno; then
+ AC_PATH_PROG(GTK_UPDATE_ICON_CACHE, gtk-update-icon-cache, no)
+ if test x$GTK_UPDATE_ICON_CACHE = xno; then
REBUILD_PNGS=#
fi
fi
AC_MSG_ERROR([
*** gtkbuiltincache.h is not in the tree, and cannot be built
*** because you don't have libpng, or (when cross-compiling) you
-*** don't have a prebuilt gdk-pixbuf-csource on the host system.])
+*** don't have a prebuilt gtk-update-icon-cache on the build system.])
fi
AC_SUBST(REBUILD_PNGS)
#include <winver.h>
-GTK_ICON ICON "gtk.ico"
+GTK_ICON ICON "@srcdir@/gtk.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION @GTK_MAJOR_VERSION@,@GTK_MINOR_VERSION@,@GTK_MICRO_VERSION@,0
done \
&& touch stamp-icons
+if CROSS_COMPILING
+gtk_update_icon_cache_program = $(GTK_UPDATE_ICON_CACHE)
+else
+gtk_update_icon_cache_program = \
+ GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders \
+ ./gtk-update-icon-cache
+endif
+
gtkbuiltincache.h: @REBUILD@ stamp-icons
$(MAKE) $(AM_MAKEFLAGS) gtk-update-icon-cache$(EXEEXT)
- GDK_PIXBUF_MODULE_FILE=$(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders \
- ./gtk-update-icon-cache --force --ignore-theme-index \
- --source builtin_icons stock-icons > gtkbuiltincache.h
+ $(gtk_update_icon_cache_program) --force --ignore-theme-index \
+ --source builtin_icons stock-icons > gtkbuiltincache.h.tmp && \
+ mv gtkbuiltincache.h.tmp gtkbuiltincache.h
EXTRA_DIST += \
$(STOCK_ICONS) \
GdkEventMotion *event);
static void remove_scroll_timeout (GtkIconView *icon_view);
+static void clear_dest_info (GtkIconView *icon_view);
+static void clear_source_info (GtkIconView *icon_view);
static guint icon_view_signals[LAST_SIGNAL] = { 0 };
icon_view->priv->vadjustment = NULL;
}
+ clear_dest_info (icon_view);
+ clear_source_info (icon_view);
+
(* GTK_OBJECT_CLASS (gtk_icon_view_parent_class)->destroy) (object);
}